export default function () {
    var docEl = document.documentElement,
        resizeEvt = 'orientationchange' in window? 'orientationchange' : 'resize',
        recalc = function () {
                var clientWidth = docEl.clientWidth;
               if (clientWidth === undefined) return;
                docEl.style.fontSize = 20 * (clientWidth / 750)*2 + 'px';
                console.log(clientWidth)
        };
    if (document.addEventListener === undefined) return;
  window.addEventListener(resizeEvt, recalc, false);
  document.addEventListener('DOMContentLoaded', recalc, false)
}
